package com.by.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author ServivE
 * @version 0.1
 * @className SpuAttrValueMapper
 * @description
 * @date 2024/11/11 17:36
 * @since jdk17
 */

/**
 * spu sku 属性值 关系
 */
@Mapper
public interface SpuSkuAttrValueMapper {

    int save(int spu_id);
    /**
     * 根据商品和规格id查询  规格属性
     * @param spu_id 商品id
     * @param sku_id sku id
     * @return
     */
    List<Map> queryBySpuSku(@Param("spu_id") int spu_id, @Param("sku_id") int sku_id);
}
